Create a Flow for a OT Link Platform Device

Estimated reading time: 2 minutes

Test your OT Link Platform configurations by creating a flow in OT Link Platform Flows. In the steps listed here, you can connect to a local device at the edge. In this example, a DataHub node subscribes to the local message broker with a topic for a local Modbus device configured in DeviceHub.

Prerequisites

Create the Flow

To create a flow to test your DeviceHub configuration:

  1. Go to Flows, as described in Navigate Flows.
  2. Search or scroll through the palette of nodes to locate the HPE DataHub Subscribe and DataHub Publish nodes.

    Hover your mouse over the DataHub nodes to identify the Subscribe node.

  3. Drag the DataHub Subscribe node onto the canvas.
  4. Scroll up through the palette to the output nodes and drag the Debug node onto the canvas.
  5. Connect the two nodes by drawing a line between them.

Configure the Flow

To configure the flow’s subscribe node:

  1. Double-click the DataHub Subscribe node to view the parameters.

  2. While in edit mode, click  to view the connection parameters. Click Update.

    This action is only required the first time you are using a DataHub node.

    The IP address and port fields are populated automatically. Do not modify these default values. Simply click Update.

  3. Go to DeviceHub > Tags tab and click the right-most  icon for the tag to copy the Raw Topic from the device tag.
    1. Once copied, you can paste the Raw Topic into the Topic field of the DataHub Subscribe node.

  4. Enter a Name for the DeviceHub Subscribe node.
  5. Click Done.
  6. Click Save.

    This last Save step can be easily overlooked, but it is essential to successfully connect to the device and to obtain data from the device.

  7. At the bottom of the Flow canvas, click the Debug tab to view the messages received from the DeviceHub device.